﻿using SuperSocket.ProtoBase;
using System;
using System.Buffers;

namespace Xc.DataAccess.Protocoals.WaterMeters.Models
{
    public class MeterFrameFilter : IPackageEncoder<MeterFrameTx>
    {
        public int Encode(IBufferWriter<byte> writer, MeterFrameTx pack)
        {
            var span = pack.FullFrame;
            writer.Write(span);
            return span.Length;
        }
    }

}
